<template>
  <bs-dialog
    v-model="visible"
    :title="title"
    :width="900"
    :confirmBtnVisible="false"
    cancelBtnText="关闭"
  >
    <div class="player-wrap">
      <BsAscPlayer :url="url" />
    </div>
  </bs-dialog>
</template>
<script lang="ts" setup>
import {ref} from 'vue'

const title = '回放'
const url = ref('')
const visible = ref(false)

const open = (link:string) => {
  visible.value = true
  url.value = link
}

defineExpose({
  open
})

</script>
<style lang="scss" scoped>
.player-wrap {
  padding: 16px;
}
</style>